from flask import Flask, Blueprint

from applications.view.cms.category import bp as category_bp


# 创建cms
cms_bps = Blueprint('cms', __name__, url_prefix='/cms')


def register_cms_bps(app: Flask):
    # 在cms_bp下注册子蓝图
    cms_bps.register_blueprint(category_bp)
    app.register_blueprint(cms_bps)

